<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>平滑折线图</title>
    <script src="../../echarts.min.js"></script>
</head>
<body>
    <div id="main" style="width: 600px;height: 400px;"></div>
</body>
    <script>
        let mychart = echarts.init(document.getElementById("main"))
        option = {
            title:{
                text:"平滑曲线",
                left:"center"
            },
            tooptip:{},
            xAxis: {
                type: 'category',
                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
            },
            yAxis: {
                type: 'value'
            },
            series: [
                {
                data: [450,232,301,734,1090,830,500],
                type: 'line',
                smooth: true
                }
            ]
        };
        mychart.setOption(option)
    </script>
</html>